<?php
namespace system\service\interfaces;
use common\service\interfaces\ICommonService;
/**
 * system服务接口
 * @package system\service\interfaces
 * @author yangjian<yangjian102621@gmail.com>
 */
interface IOperationService extends ICommonService {

    //权限数组缓存key
    const PERMISSION_DATA_CACHE = 'permission_data_cache_key';

    //分组获取操作缓存key
    const OPERATION_DATA_CACHE = 'operation_data_cache_key';

    /**
     * 获取权限数组
     * @return mixed
     */
    public function getPermssionArray();

    /**
     * 分组获取操作
     * @return mixed
     */
    public function getOperationsByGroup();

    /**
     * 刷新权限数组缓存
     * @return mixed
     */
    public function flush();
}
